<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>首页</title>
</head>

<body>
  <form action="reg.php" method="post" name="form1" id="form1">
    <table width="600" border="1">
      <tr>
        <th colspan="2" scope="row">用户注册</th>
      </tr>
      <tr>
        <th scope="row">用户名</th>
        <td><label for="username3"></label>
          <input name="username" type="text" value="zhangna" />
        </td>
      </tr>
      <tr>
        <th scope="row">密码</th>
        <td><label for="password"></label>
          <input name="password" type="password" id="password" value="123456" />
        </td>
      </tr>
      <tr>
        <th scope="row">确认密码</th>
        <td><input name="password2" type="password" id="password2" value="123456" /></td>
      </tr>
      <tr>
        <th scope="row">姓名</th>
        <td><label for="realname"></label>
          <input name="realname" type="text" id="realname" value="张娜" />
        </td>
      </tr>
      <tr>
        <th scope="row">学号</th>
        <td><label for="studentID"></label>
          <input name="studentID" type="text" id="studentID" value="000000" />
        </td>
      </tr>
      <tr>
        <th scope="row">性别</th>
        <td><input type="radio" name="gender" value="1" />
          男
          <input type="radio" name="gender" value="2" />
          <label for="gender2">女
            <input name="gender" type="radio" value="0" checked="checked" />
            保密</label>
        </td>
      </tr>
      <tr>
        <th scope="row">班级</th>
        <td><label for="class"></label>
          <select name="class" id="class">
            <option value="1">网络21-1</option>
            <option value="2">网络21-2</option>
            <option value="3">网络21-3</option>
            <option value="4" selected="selected">网络21-4</option>
            <option value="5">网络21-5</option>
          </select>
        </td>
      </tr>
      <tr>
        <th scope="row">兴趣爱好</th>
        <td><input name="hobbies[]" type="checkbox" checked value="1" />
          篮球
          <input name="hobbies[]" type="checkbox" value="2" />
          足球
          <input name="hobbies[]" type="checkbox" checked value="3" />
          排球
          <input name="hobbies[]" type="checkbox" value="4" />
          羽毛球
        </td>
      </tr>
      <tr>
        <th scope="row">自我介绍</th>
        <td>
          <textarea name="introduction" id="introduction" cols="45" rows="5">大家好，我叫张娜，我的学号是000000，来自网络21-4班。我的兴趣爱好是篮球、足球、排球和羽毛球。</textarea>
        </td>
      </tr>
      <tr>
        <td colspan="2" scope="row" align="center"><input type="submit" name="reg" id="reg" value="注册" /></td>
      </tr>
    </table>
    <p>&nbsp;</p>
  </form>
</body>

</html>